gtkwidget: Avoid poking surfaces and events in gtk_widget_list_devices()
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2020 09:14:52 +0000 (11:14 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2020 09:14:52 +0000 (11:14 +0200)
commitf401b05e7b697c7eafe5e4436830e0229e58aecd
tree828a4d5b1ec1874fc593d6cca0df6b109a682b29
parent42ed8a2748c96794f52d9dc1007fee9383d829c9
gtkwidget: Avoid poking surfaces and events in gtk_widget_list_devices()

This got stuck in ancient times when widgets were windowed, so the devices
in a window to know the devices in that widget would pan out. We do only
want here the devices that are inside the widget, not spread over the
surface, so rewrite this helper function to poke the toplevel foci, and
look they are contained inside the widget.
gtk/gtkwidget.c
gtk/gtkwindow.c
gtk/gtkwindowprivate.h